﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using LastoRevival.Service.Contracts.Models;

namespace LastoRevival.Service.Implementations.Data.Sql.Converters
{
	public class UserStatsCreator
	{

		public UserStats Create(DataRow row)
		{
			var stats = new UserStats
			{
				MemberSince = (DateTime)row["CreateDate"],
				TotalPosts = (int)row["TotalPosts"]
			};

			return stats;
		}

	}
}
